import service from '@/utils/request'
// eslint-disable-next-line no-unused-vars
const { httpPostForm, httpPost, httpGet } = service
const request = {
    //供应商基础新增
    supplierAdd (params) {
        return httpPost({
            url: '/outer/supplier/create',
            params
        })
    },
    //供应商基础信息
    factualOutsourcerBase (params) {
        return httpGet({
            url: '/outer/supplier/findById',
            params
        })
    },
    //供应商基础修改
    factualBaseUpdate (params) {
        return httpPost({
            url: '/outer/supplier/update',
            params
        })
    },
    //供应商资质信息列表
    supplierQualificationsList (billId) {
        return httpGet({
            url: `/outer/supplier/qualification/index/${billId}`,
        })
    },
    //供应商资质信息新增
    supplierQualificationsAdd (params) {
        return httpPost({
            url: '/outer/supplier/change/qualification/create',
            params
        })
    },
    //供应商业绩列表
    supplierAchievementList (params) {
        return httpPost({
            url: '/outer/supplier/performance/index',
            params
        })
    },
    //供应商业绩新增
    supplierAchievementAdd (params) {
        return httpPost({
            url: '/outer/supplier/performance/create',
            params
        })
    },
    //根据分包商名称查询分包商基础信息
    getsupplierName (params) {
        return httpGet({
            url: '/outer/supplier/find/by/supplier/name',
            params
        })
    },
}
export default request